<script><?php $this->beginBlock('js_finish') ?>
    var index = parent.layer.getFrameIndex(window.name);
    parent.layer.close(index);
    parent.layer.msg('操作成功', {icon: 1});
    <?php $this->endBlock() ?>
</script>
<?php $this->registerJs($this->blocks['js_finish']); ?>